package com.mandao.oneplat.boot.util;

/**
 * Created by sunson on 2017/3/23.
 */
public class UrlUtil {
    /**
     * @param uri
     * @return
     */
    public static String removeQueryString(String uri) {
        char[] splashs = new char[]{'?', '#'};
        for (char c : splashs) {
            int index = uri.indexOf(c);
            if (index > 0) {
                uri = uri.substring(0, index);
            }
        }
        return uri;
    }
}
